#! /bin/bash

sudo bash -c 'echo -e "\n#black old gpu driver \nblacklist vga16fb \nblacklist nouveau \nblacklist rivafb \nblacklist rivatv \nblacklist nvidiafb" >>/etc/modprobe.d/blacklist.conf'
if [sudo update-initramfs -u] then
    sudo reboot
fi